package cn.kpi.dao.loan;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.kpi.common.persistence.MyBatisDao;
import cn.kpi.entity.loan.LoanUserEntity;
import cn.kpi.entity.loan.LoanUserListEntity;
import cn.kpi.entity.loan.LoanUserLogEntity;

@MyBatisDao
public interface LoanUserDao {
public int InsertLoanUserEntity(LoanUserEntity entity)throws Exception;
public int InsertLoanUserLogEntity(LoanUserLogEntity entity)throws Exception;
public List<LoanUserListEntity> GetUserLoanList(@Param("where")String where,@Param("realname")String realname)throws Exception;
public int GetUserLoanListCount(@Param("where")String where,@Param("realname")String realname)throws Exception;
public int UpdateLoanUser(@Param("loandes")String loandes,@Param("loanid")Long loanid,@Param("userid")Long userid,@Param("status")int status,@Param("gdbyuserid")Long gdbyuserid)throws Exception;
public int UpdateUserSzdwByUserid(@Param("loanorgid")Long loanorgid,@Param("userid")Long userid)throws Exception;

public LoanUserListEntity GetUserLoanByLoanid(@Param("loanid")Long loanid)throws Exception;

public int UpdateLoanUserEntity(LoanUserEntity entity)throws Exception;

public int DeleteUserLoan(@Param("loanid")Long loanid)throws Exception;
public int DeleteUserLoanLog(@Param("loanid")Long loanid)throws Exception;

public List<LoanUserListEntity> GetUserLoanListDq(@Param("where")String where)throws Exception;

    public List<LoanUserListEntity> GetLoanListForTask()throws Exception;
    public int UpdateLoanListForTask(@Param("list") List<LoanUserListEntity> list)throws Exception;

}
